<?php
namespace Common\Controller;
use Common\Controller\CommonController;
class GuessFilmController extends CommonController
{

    /**
     * 世界排行
     */
    public function getcacherank(){

        $cache = S('filmrank');

        if (!empty($cache)){
            return $cache;
        }

        $cache = M('guessfilm_member')->field('nickname,avatarurl,sumcustoms,rankname')->limit(200)->order('sumcustoms desc')->select();

        S('filmrank',$cache,600);

        return $cache;
    }

}